package com.ltkj.baseplatform.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ltkj.baseplatform.mapper.SerGuidedTypeMapper;
import com.ltkj.baseplatform.domain.SerGuidedType;
import com.ltkj.baseplatform.service.ISerGuidedTypeService;

/**
 * 导航导览分类Service业务层处理
 * 
 * @author chenzeen
 * @date 2023-09-10
 */
@Service
public class SerGuidedTypeServiceImpl implements ISerGuidedTypeService 
{
    @Autowired
    private SerGuidedTypeMapper serGuidedTypeMapper;

    /**
     * 查询导航导览分类
     * 
     * @param guidedTypeId 导航导览分类主键
     * @return 导航导览分类
     */
    @Override
    public SerGuidedType selectSerGuidedTypeByGuidedTypeId(Long guidedTypeId)
    {
        return serGuidedTypeMapper.selectSerGuidedTypeByGuidedTypeId(guidedTypeId);
    }

    /**
     * 查询导航导览分类列表
     * 
     * @param serGuidedType 导航导览分类
     * @return 导航导览分类
     */
    @Override
    public List<SerGuidedType> selectSerGuidedTypeList(SerGuidedType serGuidedType)
    {
        return serGuidedTypeMapper.selectSerGuidedTypeList(serGuidedType);
    }

    /**
     * 新增导航导览分类
     * 
     * @param serGuidedType 导航导览分类
     * @return 结果
     */
    @Override
    public int insertSerGuidedType(SerGuidedType serGuidedType)
    {
        return serGuidedTypeMapper.insertSerGuidedType(serGuidedType);
    }

    /**
     * 修改导航导览分类
     * 
     * @param serGuidedType 导航导览分类
     * @return 结果
     */
    @Override
    public int updateSerGuidedType(SerGuidedType serGuidedType)
    {
        return serGuidedTypeMapper.updateSerGuidedType(serGuidedType);
    }

    /**
     * 批量删除导航导览分类
     * 
     * @param guidedTypeIds 需要删除的导航导览分类主键
     * @return 结果
     */
    @Override
    public int deleteSerGuidedTypeByGuidedTypeIds(Long[] guidedTypeIds)
    {
        return serGuidedTypeMapper.deleteSerGuidedTypeByGuidedTypeIds(guidedTypeIds);
    }

    /**
     * 删除导航导览分类信息
     * 
     * @param guidedTypeId 导航导览分类主键
     * @return 结果
     */
    @Override
    public int deleteSerGuidedTypeByGuidedTypeId(Long guidedTypeId)
    {
        return serGuidedTypeMapper.deleteSerGuidedTypeByGuidedTypeId(guidedTypeId);
    }
}
